package com.study.service.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * openFeign远程调用
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2020/9/9 0:01
 */
@FeignClient("member")  //远程调用member
public interface MemberServiceFeign {

    @GetMapping("/getUser")
    String getUser(@RequestParam("userId") Integer userId);
}
